/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GrupoD_Final;

import java.util.HashMap;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class ImpSearchResult implements SearchResult {

    private static final Log LOGGER = LogFactory.getLog(ImpInstantMessage.class);
    HashMap results;
    //This function fill the HashMap with the results of the query

    public void SetSearchResults(HashMap list) {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Results of the search ready");
        }
        this.results = list;
    }
    //This function returns the HashMap with the results of the query

    public HashMap getSearchResults() {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("Results of the search sended");
        }
        return results;
    }
}
